package com.xue.pet.controller;

import com.xue.pet.feign.PetFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author scutum
 * @version v1.0
 * @title：
 * @description：
 * @date 2017/12/5
 */
@RestController
public class PetController {

    @Autowired
    PetFeign petFeign;

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam String name){
        return petFeign.sayHiFromClientOne(name);
    }
}
